package com.naiterui.ehp.bs.emr.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bp.support.security.SettingConfig;

/**
 * 
 */
@FeignClient(name = "emrPc", url = "${ehp.domain.pcapi}", configuration = FeignConfiguration.class)
public interface IPcFeignClient {

    /**
     * 获取医生pc用户id
     * 
     * @param token
     * @return
     */
    @GetMapping("/pc/inner/user/id")
    Long checkDoctorPcToken(@RequestHeader(value = SettingConfig.TOKEN_HEADER) String token) throws BusinessException;
}
